/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package albumdownloader.ui.fx;

import albumdownloader.ui.UserInterface;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.PerspectiveCameraBuilder;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.StageStyle;

/**
 *
 * @author max.m.yuan@gmail.com
 */
public class UserInterfaceJavaFxImpl extends Application implements UserInterface {

    @Override
    public void start(Stage stage) throws Exception {
        Parent root = FXMLLoader.load(getClass().getResource("AlbumDownloader.fxml"));

        Scene scene = new Scene(root);
        scene.setCamera(PerspectiveCameraBuilder.create().build());

        stage.initStyle(StageStyle.UNDECORATED);
        stage.setScene(scene);
        stage.show();
    }

    @Override
    public void start(String[] args) {
        launch(args);
    }
}
